package com.usian.controller;

import com.usian.designer.HomeDestination;
import com.usian.service.DestinationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.print.attribute.standard.Destination;
import java.util.List;

@RestController
@RequestMapping("/app/users/categories")
public class DestinationController {
    @Autowired
    private DestinationService destinationService;

    @RequestMapping("/getCategories")
    public List<HomeDestination> getCategories() {
        return destinationService.getCategories();
    }

}
